package com.cmict.data.form.api.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * Mapper 接口
 *
 * @Author qiaoyu
 * @since 2022-9-2
 */
@Mapper
public interface SysEditionMapper extends BaseMapper<Object> {

    @Insert("${sql}")
    @DS("slave")
    Boolean dataVersionRecord(String sql);

    @Select("${sql}")
    @DS("slave")
    List<Map<Object,Object>> getDataVersionList(String sql);

}
